﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace BLL.Services.Responses.Listing
{
    public class ResponsesListing
    {
        public ResponsesListing()
        {
            Responses = new List<Response>();
            Filter = new ResponseFilter();
        }

        public List<Response> Responses { get; set; }

        public int Page { get; set; }

        public int TotalPages { get; set; }

        public int Size { get; set; }

        public int Direction { get; set; }

        public string Column { get; set; }

        public ResponseFilter Filter { get; set; }

        public class Response
        {
            public int ResponseId { get; set; }

            public string DateOfPublish { get; set; }

            public int BookId { get; set; }

            [Display(Name = "Book Title")]
            public string BookTitle { get; set; }

            public int UserId { get; set; }

            [Display(Name = "User Email")]
            public string UserEmail { get; set; }
        }
    }
}